package 数据结构.章节09._148_双链表;

/**
 * @author 挚爱之夕
 * @date 2021/10/8 - 10 - 08 - 17:56
 * @Description: 数据结构.章节09._148_双链表
 * @Version: 1.0
 */
public class ListNode<T> {
    ListNode<T> pre;
    T data;
    ListNode<T> next;

    public ListNode<T> getPre() {
        return pre;
    }

    public T getData() {
        return data;
    }

    public ListNode<T> getNext() {
        return next;
    }

    public void setPre(ListNode<T> pre) {
        this.pre = pre;
    }

    public void setData(T data) {
        this.data = data;
    }

    public void setNext(ListNode<T> next) {
        this.next = next;
    }

    public ListNode(T data) {
        this.data = data;
    }
}
